<template>
  <div>
    <el-row>
        <el-col>
            <el-descriptions class="margin-top" title="项目" :column="2" border>
                <template slot="extra">
                    <el-button type="primary" @click="htt()" size="small">操作</el-button>
                </template>
            </el-descriptions>
        </el-col>
    </el-row>
    <el-divider id="der"></el-divider>
  </div>
</template>

<style>
.title{
  font-size: 16px;
  font-weight: 700;
}
#der{
  margin-top: 0px;
}
</style>

<script>
export default {
  data() {
    return {
      url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
      about:{
        about:"123456"
      },
      // its: ["Java开发","客户端技术","数据库"],
      its: [
        {
          id:1,
          data:"Java开发",
          descriptionId:1
        },
        {
          id:2,
          data:"客户端技术",
          descriptionId:1
        },
        {
          id:3,
          data:"数据库",
          descriptionId:1
        }
      ]
    };
  },
  mounted:function(){
    // this.get();
    // this.post();
    // this.po();
  },
  methods: {
    htt(){
      this.$http.post("updatadescription",this.its).then(res => {
        console.log(res)
      })},
    po(){
      let data='123456'   //要传的值
      this.$emit('childClick',data)
    },
    get:function(){
      // console.log(typeof this.$http.get("redis"));
      this.$http.get("redis").then(res =>{
        console.log(res.data.message);
      })
    },
    post:function(){
    const {data:res} =  this.$http.post("updataAboutMe",this.about);
    console.log(res);
    }
  }
}
</script>
